//
//  SVProgressHUDTool.h
//  PipiWallpaper
//
//  Created by Yan on 2020/7/2.
//  Copyright © 2020 PipiWallpaper. All rights reserved.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN
typedef void (^SVProgressHUDShowCompletion)(void);
@interface SVProgressHUDTool : NSObject
// 显示提示框
+ (void)showToastMessage:(NSString *)message;
+ (void)showToastMessage:(NSString *)message completion:(SVProgressHUDShowCompletion)completion;

// 显示加载指示器
+ (void)showWithStatus:(nullable NSString *)status;
+ (void)showWithStatus:(NSString *)status dismissTimeInterval:(NSInteger)interval completion:(nullable SVProgressHUDShowCompletion)completion;

// 成功
+ (void)showSuccessWithStatus:(NSString *)status;
+ (void)showSuccessWithStatus:(NSString *)status dismissTimeInterval:(NSInteger)interval completion:(SVProgressHUDShowCompletion)completion;
+ (void)showSuccessWithStatus:(NSString *)status completion:(SVProgressHUDShowCompletion)completion;;

+ (void)showInfoWithStatus:(NSString *)status;

// 失败
+ (void)showErrorWithStatus:(NSString *)status;
+ (void)showErrorWithStatus:(NSString *)status dismissTimeInterval:(NSInteger)interval completion:(SVProgressHUDShowCompletion)completion;
+ (void)showErrorWithStatus:(NSString *)status completion:(SVProgressHUDShowCompletion)completion;

// 显示下载进度
+ (void)showProgress:(CGFloat)progress status:(NSString *)status;
+ (void)showToastTitle:(NSString *)title Message:(NSString *)message;
// 关闭
+ (void)dismiss;
@end

NS_ASSUME_NONNULL_END
